<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var obj = {
            age:22,
            name:'貂蝉',
            skill: function (){
                console.log('释放技能');
            }
        }
        //1.关键字Object Array   都是类
        var  lvbu  = new Object();
        //2.对象可以动态的添加属性和方法。对象可以作为函数的参数
        lvbu.name = "吕布";
        lvbu.level = 18;
        lvbu.skill = function(){
            console.log('大战曹操');
        }
        console.log(lvbu.name);
        console.log(lvbu['level']);
        lvbu.skill();
    </script>
</head>
<body>
    
</body>
</html>